<?php

namespace App\Models\Common;

use App\Models\Traits\HasOperateLog;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;

class SerialNumberLog extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'serial_number_logs';

    use HasOperateLog;
    protected $guarded = [];

    public function serialNumber() : BelongsTo
    {
        return $this->belongsTo(SerialNumber::class, 'serial_number_id');
    }
}
